package com.ccnf.service;

import com.ccnf.model.entity.AccountRecord;
import com.ccnf.model.entity.InvitationAccount;
import com.ccnf.model.entity.RewardCash;

import java.util.List;

public interface AccountService {

    InvitationAccount findInvitationAccountByAccountId(Long accountId);

    /**
     * 查询用户邀请函账户信息
     * @param invitationId 邀请函ID
     * @param userId 用户ID
     */
    InvitationAccount findUserInvitationAccount(Long invitationId, Long userId);

    /**
     * 查询用户邀请函账户的收入明细
     * @param accountId 账户ID
     */
    List<AccountRecord> findAccountIncomeDetailByAccountId(Long accountId);

    /**
     * 录入赏金账户提现红包数据
     * @param rewardCash 赏金账户提现红包数据
     * @return 返回提现记录ID
     */
    Long saveRewardAccountCash(RewardCash rewardCash);

    void modifyRewardAccountCashByCashId(RewardCash rewardCash);

    /**
     * 查询用户邀请函账户的提现明细
     * @param accountId 账户ID
     */
    List<RewardCash> findAccountCashDetailByAccountId(Long accountId);
}